import request from '@/utils/request'

// 查询提交统计数据
export function getSubmitStatistics(query) {
  return request({
    url: '/eduManage/submit/statistics/submit',
    method: 'get',
    params: query
  })
}

// 查询统计概览数据
export function getStatisticsOverview(query) {
  return request({
    url: '/eduManage/submit/statistics/overview',
    method: 'get',
    params: query
  })
}

// 导出统计数据
export function exportStatistics(query) {
  return request({
    url: '/eduManage/submit/statistics/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 获取班级选项
export function getClassOptions() {
  return request({
    url: '/eduManage/submit/statistics/classOptions',
    method: 'get'
  })
}

// 根据班级获取学生列表
export function getStudentsByClass(classCode) {
  return request({
    url: '/eduManage/submit/statistics/studentsByClass',
    method: 'get',
    params: { classCode }
  })
}

// 获取学生每日提交详情统计
export function getDailySubmitDetail(query) {
  return request({
    url: '/eduManage/submit/statistics/dailyDetail',
    method: 'get',
    params: query
  })
}